package cn.example.listandrecycleruit;

public class Fruit {

    /**
     * 存储图片的名字
     */
    private String name;
    /**
     * 存储图片的id
     */
    private int imgId;

    public Fruit(String name, int imgId) {
        this.name = name;
        this.imgId = imgId;
    }

    public String getName() {
        return name;
    }

    public int getImgId() {
        return imgId;
    }
}
